'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async list() {
    const { ctx } = this;
    const res = await ctx.service.list.getlist();
    ctx.body = {
        code:200,
        msg:"数据请求成功",
        res
    }
  }
}

module.exports = HomeController;
